package com.zx.chatroom.po;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * GroupMembers entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "GROUP_MEMBERS")
public class GroupMembers implements java.io.Serializable {

	// Fields

	private GroupMembersId id;

	// Constructors

	/** default constructor */
	public GroupMembers() {
	}

	/** full constructor */
	public GroupMembers(GroupMembersId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "userid", column = @Column(name = "USERID", nullable = false, length = 60)),
			@AttributeOverride(name = "groupid", column = @Column(name = "GROUPID", nullable = false, length = 60)) })
	public GroupMembersId getId() {
		return this.id;
	}

	public void setId(GroupMembersId id) {
		this.id = id;
	}

}